package com.magicmovie.service.impl;

import com.magicmovie.mapper.UserRoleMapper;
import com.magicmovie.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public List<String> findByUser(Integer userId) {
        List<String> roles = userRoleMapper.findByUser(userId);
        return roles;
    }
}
